package com.hjf.booking.module.user.mapper;

import com.hjf.booking.module.user.po.MpUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hjf
 * @since 2021-02-18
 */
public interface MpUserMapper extends BaseMapper<MpUser> {

    @Select("select *from mp_user where openid = #{openId}")
    MpUser selectByOpenId(@Param("openId") String openId);

    @Select("select *from mp_user where user_name = #{username}")
    MpUser selectByName(@Param("username") String username);
}
